home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
editor
/
blksedtr.lha
/
BED
/
Rexx
/
Doc_Startup.bed
< prev
next >
Wrap
Text File
|
1996-01-28
|
694b
|
41 lines
/*
** $VER: Doc_Startup.bed 1.0 (2.1.96)
**
** ARexx Macro executed at the opening of each document of Blacks Editor
*/
OPTIONS RESULTS
GetFileInfo
PARSE VAR RESULT . . '"'name'"'
IF NAME ~= "" THEN DO
dotpos = LASTPOS('.', name)
IF dotpos = 0 THEN
ext = ""
ELSE
ext = SUBSTR(name, dotpos+1)
END
SELECT
/*
** You can insert here how many extensions you want:
**
** For example:
**
** WHEN (ext = 'asm') | (ext = 's') | (ext = 'a') THEN DO
** OpenPrefs "BED:Support/Assembler.prf"
** OpenDefinitions "BED:Support/Assembler.dfn"
** END
**
*/
WHEN (ext = 'c') | (ext = 'h') THEN DO
OpenPrefs "BED:Support/SAS_C.prf"
OpenDefinitions "BED:Support/SAS_C.dfn"
END
END
END